package com.commander.gui;

import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.*;
import org.eclipse.swt.widgets.*;
import org.eclipse.swt.layout.*;
import org.eclipse.swt.events.*;

import com.commander.Commander;

public abstract class CommanderTab {
	public Composite tabFolderPage;
	public Group tabGroup, consoleGroup;
	public Text console;
	public final Commander instance;
	public CommanderTab(Commander instance){this.instance = instance;}
	
	
	
	void createTabGroup(){
		tabGroup = new Group(tabFolderPage, SWT.NONE);
		tabGroup.setLayout(new GridLayout());
		tabGroup.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
	}
	
	void createConsoleDialog(){
		consoleGroup = new Group(tabFolderPage, SWT.NONE);
		consoleGroup.setLayout(new GridLayout(3, false));
		consoleGroup.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1));
		console = new Text(consoleGroup, SWT.BORDER);
		Button clearButton = new Button(consoleGroup, SWT.PUSH);
		clearButton.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));
		
	}
}